<%@ page import="com.es.bean.Employee" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022-04-27
  Time: 10:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>useBean的使用</title>
</head>
<body>

  <jsp:useBean id="lj" scope="page" class="com.es.bean.Employee">

  </jsp:useBean>
  <!--是给指定的对象的属性进行赋值-->
  <jsp:setProperty name="lj" property="id" value="1"></jsp:setProperty>
  <jsp:setProperty name="lj" property="name" value="李健"></jsp:setProperty>
  <%--<%
      Employee e = new Employee();
      e.setAddress("");
      e.setId(1);
  %>

   <%=lj%>--%>


</body>
</html>
